<%-- 
    Document   : addStudent
    Created on : Sep 20, 2012, 5:31:10 PM
    Author     : Admin
--%>

<%@page import="Controller.MyLib"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
       
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Thêm sinh viên</title>
         
    </head>
    <body>

          <%
        String menu;
        //tb="";
        request.setCharacterEncoding("utf-8");
        String tb = MyLib.getParameter("tb", request);
        String studentID = MyLib.getParameter("studentID", request);
        String name = MyLib.getParameter("name", request);
        String birth = MyLib.getParameter("birth", request);
        String createdDate = MyLib.getParameter("createdDate", request);
        String gender = MyLib.getParameter("gender", request);
        String classLearning = MyLib.getParameter("classLearning", request);
        menu = MyLib.getParameter("menu", request);
       // menu = menu.replace("#", "&");
        if (menu.equals("")) {
            response.sendRedirect("Controller?requestAction=showClassName");                    
        }
              else tb = MyLib.getParameter("tb", request);    
        %>
        <h1>Thêm sinh viên</h1>
      <form action="Controller" method="post">
      
      <input type="hidden" name="requestAction" value="addStudent">
       Mã SV: <input type="text" name="txtStudentID"  value=""/></br>
       Tên SV: <input type="text" name="txtStudentName"  value=""/></br>
       Ngày sinh :<input type="text" name="txtStudentBirth"  value=""/></br>
       Giới tính : <input type="radio" name="rdoGender" value="Nam" checked="true"/>Nam
                    <input type="radio" name="rdoGender" value="Nu"/>Nữ  </br>                                                               
       Niên khóa : <input type="text" name="txtStudentCreated" value=""/></br>
       Lớp:<select name="optionClass">
        <%=menu%>
      </select>
      </p>
       <input type="submit" class="submit"  value="OK" name ="btnAdd"/>
       <input type="reset" value="Reset"/></br>
        </p>
        <%=tb%>
           </form>
    </body>
</html>
